(function() {window.PARSELY = window.PARSELY || {}; window.PARSELY.version = "2.3.0"; window.PARSELY.majorVersion = 2; window.PARSELY.hotfixName = ""; window.PARSELY.flavor = "conversions-engagedtime-slots"; window.PARSELY.__template_track_ips = true; window.PARSELY.__template_heartbeat_should_honor_autotrack = undefined; window.PARSELY.__template_limit_et_sample_len = true; window.PARSELY.__template_apikey = "valawyersweekly.com"; window.PARSELY.__template_is_first_party = false; window.PARSELY.__template_pixelhost = ""; window.PARSELY.__template_customizations = {"customer":{"apikey":"valawyersweekly.com"},"conversions":[{"type":"Newsletter Signup","event":"submit","selector":"form#ao-form-789e615c-f279-46d6-8361-7b654a983255","label":"Newsletter Landing","allowedUrls":["/the-vlw-daily-alert/"],"poll":true},{"type":"Newsletter Signup","event":"submit","selector":"form#ao-form-f392abfd-0d01-43c7-a304-e3d63309f878","label":"Newsletter Footer","poll":true},{"type":"Subscription","allowedUrls":["/thank-you/"],"event":"load","label":"Paid Subscription","poll":true}]}; })(); /*! parsely-js-api - v2.3.0 - 2024-09-16 * http://www.parsely.com/ * 2024 Parsely, Inc. */ function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window.PARSELY=window.PARSELY||{},function(){var e=function(){return function(e){this!==window&&void 0!==this&&(this.msgs.length>=100&&(this.msgs=this.msgs.slice(0,100)),this.msgs.push(e))}};PARSELY.console={"msgs":[],"log":e(),"dir":e()}}(),function(){var e,t=PARSELY.console;try{e=document.getElementById("parsely-cfg").getAttribute("data-parsely-site")}catch(r){e=null}var n=PARSELY.site||e||PARSELY.__template_apikey||"missing.parsely.com",i=document.location.protocol+"//"+(PARSELY.pixelhost||PARSELY.__template_pixelhost||"p1.parsely.com");PARSELY.pInit=function(e){if(e.error===undefined){if(t.log("Static configuration loaded"),"object"===_typeof(PARSELY.config))for(var n in PARSELY.config)PARSELY.config.hasOwnProperty(n)&&(e[n]=PARSELY.config[n]);PARSELY.config=e,PARSELY.urls={"static":null,"config":null,"pixel":i},PARSELY._sync=!0,PARSELY.is_first_party=PARSELY.__template_is_first_party||!1}else t.log("Unable to load static configuration")},t.log("Loading configuration statically");var o={"apikey":n,"uuid":null,"network_uuid":null,"apikey_uuid":null,"settings":{"debug":!1,"widget":!1,"tracker":!0,"test":window._parselyIsTest||!1},"bundle":null,"customizations":PARSELY.__template_customizations||null,"track_ip_addresses":null==PARSELY.__template_track_ips||PARSELY.__template_track_ips,"heartbeat_should_honor_autotrack":PARSELY.__template_heartbeat_should_honor_autotrack||!1,"limit_et_sample_len":PARSELY.__template_limit_et_sample_len||!1,"is_remote_config":!1};PARSELY.pInit(o)}(),"object"!==("undefined"==typeof JSON?"undefined":_typeof(JSON))&&(JSON={}),function(){"use strict";function e(e){return e<10?"0"+e:e}function t(){return this.valueOf()}function n(e){return r.lastIndex=0,r.test(e)?'"'+e.replace(r,function(e){var t=u[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function i(e,t){var o,r,u,l,d,f=a,p=t[e];switch(p&&"object"===_typeof(p)&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),"function"==typeof c&&(p=c.call(t,e,p)),_typeof(p)){case"string":return n(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(a+=s,d=[],"[object Array]"===Object.prototype.toString.apply(p)){for(l=p.length,o=0;o0&&t-1 in e))}function i(e){var t;for(t in e)if(("data"!==t||!m.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function o(e,t,n,i){if(m.acceptData(e)){var o,r,a=m.expando,s=e.nodeType,u=s?m.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(i||u[l].data)||n!==undefined||"string"!=typeof t)return l||(l=s?e[a]=c.pop()||m.guid++:a),u[l]||(u[l]=s?{}:{"toJSON":m.noop}),"object"!==_typeof(t)&&"function"!=typeof t||(i?u[l]=m.extend(u[l],t):u[l].data=m.extend(u[l].data,t)),r=u[l],i||(r.data||(r.data={}),r=r.data),n!==undefined&&(r[m.camelCase(t)]=n),"string"==typeof t?null==(o=r[t])&&(o=r[m.camelCase(t)]):o=r,o}}function r(){return!0}function a(){return!1}function s(){try{return x.activeElement}catch(e){}}function u(e,t,n,i){var o;if(m.isArray(t))m.each(t,function(t,o){n||Y.test(e)?i(e,o):u(e+"["+("object"===_typeof(o)?t:"")+"]",o,n,i)});else if(n||"object"!==m.type(t))i(e,t);else for(o in t)u(e+"["+o+"]",t[o],n,i)}var c=[],l=c.slice,d=(c.concat,c.push),f=(c.indexOf,{}),p=f.toString,g=f.hasOwnProperty,h={},v="1.11.1 -deprecated,-css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl",m=function D(e,t){return new D.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,_=/^-ms-/,S=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};m.fn=m.prototype={"jquery":v,"constructor":m,"selector":"","length":0,"toArray":function(){return l.call(this)},"get":function(e){return null!=e?e<0?this[e+this.length]:this[e]:l.call(this)},"pushStack":function(e){var t=m.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},"each":function(e,t){return m.each(this,e,t)},"map":function(e){return this.pushStack(m.map(this,function(t,n){return e.call(t,n,t)}))},"slice":function(){return this.pushStack(l.apply(this,arguments))},"first":function(){return this.eq(0)},"last":function(){return this.eq(-1)},"eq":function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},"isEmptyObject":function(e){var t;for(t in e)return!1;return!0},"isPlainObject":function(e){var t;if(!e||"object"!==m.type(e)||e.nodeType||m.isWindow(e))return!1;try{if(e.constructor&&!g.call(e,"constructor")&&!g.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(h.ownLast)for(t in e)return g.call(e,t);for(t in e);return t===undefined||g.call(e,t)},"type":function(e){return null==e?e+"":"object"===_typeof(e)||"function"==typeof e?f[p.call(e)]||"object":_typeof(e)},"camelCase":function(e){return e.replace(_,"ms-").replace(S,b)},"nodeName":function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"each":function(e,t,i){var o=0,r=e.length,a=n(e);if(i){if(a)for(;o(?:<\/\1>|)$/,x=e.document,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(m.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if((n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:k.exec(e))&&(n[1]||!t)){if(n[1]){if(t=t instanceof m?t[0]:t,m.merge(this,m.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),w.test(n[1])&&m.isPlainObject(t))for(n in t)m.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=x.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=x,this.selector=e,this}}else{if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(m.isFunction(e))return"undefined"!=typeof E.ready?E.ready(e):e(m)}return e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),m.makeArray(e,this)}).prototype=m.fn,E=m(x);var P,A=/\S+/g,L="undefined"==typeof undefined?"undefined":_typeof(undefined);for(P in m(h))break;h.ownLast="0"!==P,m.acceptData=function(e){var t=m.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};m.extend({"cache":{},"noData":{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},"hasData":function(e){return!!(e=e.nodeType?m.cache[e[m.expando]]:e[m.expando])&&!i(e)},"data":function(e,t,n){return o(e,t,n)},"_data":function(e,t,n){return o(e,t,n,!0)}});!function(){var t,n,i=x.createElement("div");for(t in{"submit":!0,"change":!0,"focusin":!0})n="on"+t,(h[t+"Bubbles"]=n in e)||(i.setAttribute(n,"t"),h[t+"Bubbles"]=!1===i.attributes[n].expando);i=null}();var C=/^key/,R=/^(?:mouse|pointer|contextmenu)|click/,O=/^(?:focusinfocus|focusoutblur)$/,T=/^([^.]*)(?:\.(.+)|)$/;m.event={"global":{},"add":function(e,t,n,i,o){var r,a,s,u,c,l,d,f,p,g,h,v=m._data(e);if(v){for(n.handler&&(n=(u=n).handler,o=u.selector),n.guid||(n.guid=m.guid++),(a=v.events)||(a=v.events={}),(l=v.handle)||((l=v.handle=function(e){return _typeof(m)===L||e&&m.event.triggered===e.type?undefined:m.event.dispatch.apply(l.elem,arguments)}).elem=e),s=(t=(t||"").match(A)||[""]).length;s--;)p=h=(r=T.exec(t[s])||[])[1],g=(r[2]||"").split(".").sort(),p&&(c=m.event.special[p]||{},p=(o?c.delegateType:c.bindType)||p,c=m.event.special[p]||{},d=m.extend({"type":p,"origType":h,"data":i,"handler":n,"guid":n.guid,"selector":o,"needsContext":o&&m.expr.match.needsContext.test(o),"namespace":g.join(".")},u),(f=a[p])||((f=a[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,g,l)||(e.addEventListener?e.addEventListener(p,l,!1):e.attachEvent&&e.attachEvent("on"+p,l))),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,d):f.push(d),m.event.global[p]=!0);e=null}},"trigger":function(t,n,i,o){var r,a,s,u,c,l,d,f=[i||x],p=g.call(t,"type")?t.type:t,h=g.call(t,"namespace")?t.namespace.split("."):[];if(s=l=i=i||x,3!==i.nodeType&&8!==i.nodeType&&!O.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(p=(h=p.split(".")).shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[m.expando]?t:new m.Event(p,"object"===_typeof(t)&&t),t.isTrigger=o?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=i),n=null==n?[t]:m.makeArray(n,[t]),c=m.event.special[p]||{},o||!c.trigger||!1!==c.trigger.apply(i,n))){if(!o&&!c.noBubble&&!m.isWindow(i)){for(u=c.delegateType||p,O.test(u+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),l=s;l===(i.ownerDocument||x)&&f.push(l.defaultView||l.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?u:c.bindType||p,(r=(m._data(s,"events")||{})[t.type]&&m._data(s,"handle"))&&r.apply(s,n),(r=a&&s[a])&&r.apply&&m.acceptData(s)&&(t.result=r.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=p,!o&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(f.pop(),n))&&m.acceptData(i)&&a&&i[p]&&!m.isWindow(i)){(l=i[a])&&(i[a]=null),m.event.triggered=p;try{i[p]()}catch(v){}m.event.triggered=undefined,l&&(i[a]=l)}return t.result}},"dispatch":function(e){e=m.event.fix(e);var t,n,i,o,r,a=[],s=l.call(arguments),u=(m._data(this,"events")||{})[e.type]||[],c=m.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=m.event.handlers.call(this,e,u),t=0;(o=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,r=0;(i=o.handlers[r++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(i.namespace)||(e.handleObj=i,e.data=i.data,(n=((m.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))!==undefined&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},"handlers":function(e,t){var n,i,o,r,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(o=[],r=0;r=0:m.find(n,this,null,[u]).length),o[n]&&o.push(i);o.length&&a.push({"elem":u,"handlers":o})}return s0?this.on(t,null,e,n):this.trigger(t)}});var N=/%20/g,Y=/\[\]$/;m.param=function(e,t){var n,i=[],o=function(e,t){t=m.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(e)||e.jquery&&!m.isPlainObject(e))m.each(e,function(){o(this.name,this.value)});else for(n in e)u(n,e[n],t,o);return i.join("&").replace(N,"+")};var I=e.jQuery,j=e.$;return m.noConflict=function(t){return e.$===m&&(e.$=j),t&&e.jQuery===m&&(e.jQuery=I),m},_typeof(t)===L&&(e.jQuery=e.$=m),m}),"undefined"==typeof window.PARSELY&&(window.PARSELY={}),function(e,t){window.PARSELY._lifecycle=t()}(0,function(){"use strict";var e=void 0;try{new EventTarget,e=!1}catch(t){e=!1}var t="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return _typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof(e)},n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n-1&&n.splice(i,1)}},{"key":"dispatchEvent","value":function(e){return e.target=this,Object.freeze(e),this._getRegistry(e.type).forEach(function(t){return t(e)}),!0}},{"key":"_getRegistry","value":function(e){return this._registry[e]=this._registry[e]||[]}}]),e}(),s=e?EventTarget:a,u=e?Event:function S(e){n(this,S),this.type=e},c=function(e){function t(e,i){n(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.newState=i.newState,o.oldState=i.oldState,o.originalEvent=i.originalEvent,o}return o(t,u),t}(),l="active",d="passive",f="hidden",p="frozen",g="terminated",h="object"===("undefined"==typeof safari?"undefined":t(safari))&&safari.pushNotification,v=["focus","blur","visibilitychange","freeze","resume","pageshow","onpageshow"in self?"pagehide":"unload"],m=function(e){return e.preventDefault(),e.returnValue="Are you sure?"},y=[[l,d,f,g],[l,d,f,p],[f,d,l],[p,f],[p,l],[p,d]].map(function(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}),_=function(){return document.visibilityState===f?f:document.hasFocus()?l:d};return new(function(e){function t(){n(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),i=_();return e._state=i,e._unsavedChanges=[],e._handleEvents=e._handleEvents.bind(e),v.forEach(function(t){return addEventListener(t,e._handleEvents,!0)}),h&&addEventListener("beforeunload",function(t){e._safariBeforeUnloadTimeout=setTimeout(function(){t.defaultPrevented||t.returnValue.length>0||e._dispatchChangesIfNeeded(t,f)},0)}),e}return o(t,s),i(t,[{"key":"addUnsavedChanges","value":function(e){!this._unsavedChanges.indexOf(e)>-1&&(0===this._unsavedChanges.length&&addEventListener("beforeunload",m),this._unsavedChanges.push(e))}},{"key":"removeUnsavedChanges","value":function(e){var t=this._unsavedChanges.indexOf(e);t>-1&&(this._unsavedChanges.splice(t,1),0===this._unsavedChanges.length&&removeEventListener("beforeunload",m))}},{"key":"_dispatchChangesIfNeeded","value":function(e,t){if(t!==this._state)for(var n=function(e,t){for(var n,i=0;n=y[i];++i){var o=n[e],r=n[t];if(o>=0&&r>=0&&r>o)return Object.keys(n).slice(o,r+1)}return[]}(this._state,t),i=0;i-1&&navigator.userAgent&&-1===navigator.userAgent.indexOf("CriOS")&&-1===navigator.userAgent.indexOf("FxiOS")},e.isFirefox=function(){return"undefined"!=typeof InstallTrigger},e.isIE=function(){return navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>-1&&navigator.userAgent.indexOf("Trident/")>-1},e.getWindowCrypto=function(){var t=e.getWindow();if(t)return t.crypto},e.makeUUID=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"",n=e.getWindowCrypto();return n?t+([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^n.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}):t+"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/x/g,function(){return(16*Math.random()|0).toString(16)})},e.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?Math.round(performance.timing.navigationStart+performance.now()):(new Date).getTime()},e.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},e.buildNewParamsObject=function(e,t){e.includes("#")&&(e=e.split("#")[0]);var n={},i=e.split("&");return t?i.forEach(function(e){var i=e.split("=");-1===t.indexOf(i[0])&&(n[i[0]]=i[1])}):i.forEach(function(e){var t=e.split("=");n[t[0]]=t[1]}),n}}(),function(e){"use strict";e.Cookies=function(t){var n=function i(e,t,n){return 1===arguments.length?i.get(e):i.set(e,t,n)};return n._document=t.document,n._cacheKeyPrefix="cookey.",n._maxExpireDate=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),n.defaults={"path":"/","secure":!1},n.get=function(e){return n._renewCache(),n._cache[n._cacheKeyPrefix+e]},n.getJSON=function(t){var i=n.get(t);return i===undefined?i:e.JSON.parse(i)},n.set=function(t,i,o){(o=n._getExtendedOptions(o)).expires=n._getExpiresDate(i===undefined?-1:o.expires);try{n._document.cookie=n._generateCookieString(t,i,o)}catch(r){e.console.log(r)}return n},n.setJSON=function(t,i,o){return n.set(t,e.JSON.stringify(i),o),n},n.extendExpiry=function(e,t){var i=n.get(e);if(i===undefined)return!1;n.set(e,i,t)},n.expire=function(e,t){if(e.constructor!==Array)return n.set(e,undefined,t);for(var i=0;io)return t.expire(n),undefined}return i.value},t.getJSON=function(n){var i=t.get(n);return void 0===i?i:e.JSON.parse(i)},t.set=function(n,i,o){var r=t._keyPrefix+n;if(void 0===i)return delete t._store[r],t;o=e.Cookies._getExtendedOptions(o);var a,s=e.Cookies._getExpiresDate(o.expires);void 0!==s&&(s=s.getTime());try{a=t._serialize({"value":i,"expires":s})}catch(u){return console.log("Error serializing stored data for key "+n),t}try{t._store[r]=a}catch(u){console.log("Error storing data for key "+r+" in localStorage"),-1!==t._quotaErrors.indexOf(u.name)&&console.log("quota exceeded")}return t},t.setJSON=function(n,i,o){return t.set(n,e.JSON.stringify(i),o),t},t.extendExpiry=function(e,n){var i=t.get(e);if(void 0===i)return!1;t.set(e,i,n)},t.expire=function(e,n){return t.set(e,undefined,n)},t._serialize=function(e){return e.value+t._delimiter+e.expires},t._deserialize=function(e){var n=e.split(t._delimiter),i={"value":n[0]};return n.length>1&&(i.expires=n[1]),i},t._migrateCookie=function(n){var i=e.Cookies.get(n);if(e.Cookies.expire(n),void 0!==i){var o=e.ParselyStorage.defaults[n],r={};void 0!==o&&(r.expires=o),t.set(n,i,r)}},{"constructor":t,"get":t.get,"getJSON":t.getJSON,"set":t.set,"setJSON":t.setJSON,"extendExpiry":t.extendExpiry,"expire":t.expire}}();var n=function(){};n.prototype=function(){var n=new t,i=function(){var t=n._keyPrefix;try{return e.util.getWindow().localStorage.setItem(t,t),e.util.getWindow().localStorage.removeItem(t),!0}catch(i){return!1}}()&&function(){var t=!1,n=e.Cookies.get("_parsely_visitor");return void 0!==n&&"{"!==n.charAt(0)&&(t=!0),!!e.util.isSafari()||!0===e.use_localstorage&&!t}()?n:e.Cookies;return{"supportsCookies":"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1),"get":i.get,"getJSON":i.getJSON,"set":i.set,"setJSON":i.setJSON,"extendExpiry":i.extendExpiry,"expire":i.expire,"defaults":{"visitor":{"key":"_parsely_visitor","expires":34164e3,"secure":!1},"session":{"key":"_parsely_session","expires":1800,"secure":!1}}}}(),e.ParselyStorage=new n}(this.PARSELY),function(){var e=this.PARSELY,t=e.Class,n=e.ParselyStorage,i=e.console,o=e.JSON,r=["id"],a=t.extend({"init":function(){this.visitorCookieName=e.visitorCookieName||n.defaults.visitor.key,this.visitorCookieTimeoutSecs=e.visitorCookieTimeoutSecs||n.defaults.visitor.expires,this.visitorCookieSecure=e.visitorCookieSecure||n.defaults.visitor.secure,this.legacyVisitorCookieName=e.legacyVisitorCookieName||"parsely_uuid"},"getVisitorInfo":function(t){t=t||!1;var r=n.get(this.visitorCookieName);if(void 0===r){var a=n.get(this.legacyVisitorCookieName),s=e.config.apikey_uuid||e.config.uuid;!1!==e.optout_disabled_cookies&&void 0===a&&!1===n.supportsCookies&&(a="OPTOUT",i.log("Setting visitor ID to OPTOUT")),void 0===a&&null!==s?(a=s,i.log("No existing visitor ID found, using UUID from config: "+a)):i.log("Using existing value for visitor ID: "+a),r=this.initVisitor(a),n.expire("parsely_uuid")}else{var u=!1;try{r=o.parse(r),u=!0}catch(c){i.log('Unable to JSON parse visitorInfo "'+r+'", assuming ampid.'),r=this.initVisitor(r)}u&&t&&this.extendVisitorExpiry()}return e.config.parsely_site_uuid=r.id,r},"initVisitor":function(e){return this.setVisitorInfo({"id":e,"session_count":0,"last_session_ts":0})},"setVisitorInfo":function(e){for(var t=0;t=i||!e?null:"A"===e.nodeName?e:n(e.parentNode,t+1)}var i=(t=t||{}).maxHeight||5;return n(e,0)}function o(e){return e.getAttribute("parsely-target")||e.href}var r=this.PARSELY,a=r.util,s=r.ParselyStorage,u="data-parsely-slot";if(r.slots=r.slots||{},document.querySelector){r.slots.discoverSlots=function(){r.slots.hasParselySlots=!!document.querySelector("["+u+"]"),r.slots.discoveryTime=a.now()},r.slots.discoverSlots(),r.slots.reset=function(){r.slots.discoverSlots()};var c=1;a.objAddEventListener(document.body,"click",function(a){var u=i(a.target?a.target:a.srcElement);if(null===u)return!0;if(!n(u.getAttribute("href"))){var c=e(u),l=t(u),d={"url":r.util.getEventUrl(),"x":c[0],"y":c[1],"xpath":l,"href":o(u)};s.setJSON("_parsely_slot_click",d)}},!0)}else r.console("Slot tracking not supported on this browser")}(),function(e){"use strict";var t=e.$;e.Sampler=function(n){var i={};if(i._hasStartedSampling=!1,i._accumulators={},i._baseHeartbeatInterval=15e4,i._jitterRange=5e3,i._jitterFloor=0-i._jitterRange/2,t.isNumeric(e.secondsBetweenHeartbeats)){var o=i._baseHeartbeatInterval/1e3,r=e.secondsBetweenHeartbeatso||r)&&(i._baseHeartbeatInterval=1e3*e.secondsBetweenHeartbeats)}return i.trackKey=function(t,o,r){if((void 0===o||"function"==typeof o)&&void 0!==r){if(!i._accumulators.hasOwnProperty(t)){var a=i._baseHeartbeatInterval;i._accumulators[t]={"ms":0,"totalMs":0,"firstSampleTime":e.util.now(),"lastSampleTime":e.util.now(),"lastActiveSampleTime":undefined,"sampleFn":o,"heartbeatFn":r,"heartbeatInterval":a,"heartbeatTimer":undefined,"baseHeartbeatInterval":a}}!1===i._hasStartedSampling&&(n.setInterval(i._sample,100),i._hasStartedSampling=!0),i._setHeartbeatTimeout(t)}},i._setHeartbeatTimeout=function(e){var t=i._accumulators[e];"undefined"!=typeof t.heartbeatTimer&&i._unsetHeartbeatTimeout(e);var o=Math.random()*i._jitterRange+i._jitterFloor,r=t.heartbeatInterval+o;t.heartbeatTimer=n.setTimeout(function(){i.sendHeartbeat(e)},r)},i._unsetHeartbeatTimeout=function(e){var t=i._accumulators[e];n.clearTimeout(t.heartbeatTimer),t.heartbeatTimer=undefined},i._backoff=function(t,n){var i=.3*((n=void 0===n?e.util.now()-t.firstSampleTime:n)/1e3+35),o=Math.min(36e5,i);t.heartbeatInterval=1e3*o},i.dropKey=function(e){delete i._accumulators[e]},i._sample=function(t,n){t=void 0===t?e.util.now():t;var o,r,a,s;for(var u in i._accumulators)o=i._accumulators[u],a=t-(void 0===n?o.lastSampleTime:n),r="undefined"==typeof o.sampleFn||o.sampleFn(t),e.config.limit_et_sample_len&&(s=a>0&&a<200,r=r&&s),o.ms+=r?a:0,o.totalMs+=r?a:0,o.lastSampleTime=t,r&&(t-o.lastActiveSampleTime>o.baseHeartbeatInterval&&(o.heartbeatInterval=o.baseHeartbeatInterval,i._setHeartbeatTimeout(u)),o.lastActiveSampleTime=t)},i.sendHeartbeat=function(e,t,n,o){var r=i._accumulators[e];if(void 0!==r){var a=void 0===t?r.ms/1e3:t,s=Math.round(a);s>0&&s<=3600&&r.heartbeatFn(s,undefined,r.totalMs,o),r.ms=0,o||i._backoff(r,n),i._setHeartbeatTimeout(e)}},i._sendHeartbeats=function(e,t){for(var n in i._accumulators)i.sendHeartbeat(n,e,t,!0)},i._setUnloadListeners=function(){e._lifecycle.addEventListener("statechange",function(e){"hidden"===e.newState.toLowerCase()&&i._sendHeartbeats()})},i._setUnloadListeners(),i}(e.util.getWindow())}(this.PARSELY),function(){var e=this.PARSELY,t=e.config.settings,n=e.Sampler,i=e.$,o=e.util;if("boolean"!=typeof e.enableHeartbeats||e.enableHeartbeats){var r=["focus","mousedown","mouseup","mousemove","scroll","keyup","keydown"],a=["active","passive"],s=5;i.isNumeric(e.activeTimeout)&&e.activeTimeout>=1&&e.activeTimeout<=60&&(s=e.activeTimeout);var u=o.now();e.engagedTime=e.engagedTime||{},e._lastEventTime=u,e.isEngaged=!0,e.isInteracting=!0,e.focused=!0,e.videoPlaying=!1,e.ENGAGED_TIME_SAMPLER_KEY="engagedTime",!0===t.test&&(e._handleEngagementActivityCalls=0),!0!==e.fbInstantArticles&&e._lifecycle.addEventListener("statechange",function(t){var n=t.newState.toLowerCase();-1!==a.indexOf(n)?e.focused=!0:e.focused=!1});var c=function(){e._lastEventTime=o.now(),!0===t.test&&e._handleEngagementActivityCalls++};!0!==e.fbInstantArticles?i.each(r,function(e,t){o.windowAddEventListener(t,c)}):setInterval(c,1e3*s),e.engagedTime.getParams=function(){return{"minActiveTimeout":1,"maxActiveTimeout":60,"activeTimeout":s}},e.engagedTime.sample=function(t,n,i,r){return t=void 0===t?o.now():t,n=void 0===n?e._lastEventTime:n,i=void 0===i?e.videoPlaying:i,r=void 0===r?e.focused:r,e.isInteracting=t-n<1e3*s,e.isEngaged=e.isInteracting&&r||i,e.isEngaged},e.engagedTime.sendHeartbeat=function(t,n,r,a){t=void 0===t?0:t,n=void 0===n?e.enableHeartbeats:n,a=void 0!==a&&a,(void 0===n||!0===n)&&(!0!==e.config.heartbeat_should_honor_autotrack||e.autotrack)&&("undefined"!=typeof PARSELY.beacon&&"undefined"!=typeof PARSELY.beacon.pixel&&"function"==typeof PARSELY.beacon.pixel.beacon?(PARSELY.beacon.pixel.beacon({"date":(new Date).toString(),"action":"heartbeat","inc":t,"tt":r,"url":o.getEventUrl(),"urlref":e.lastRequest?e.lastRequest.urlref:o.getWindow().document.referrer},undefined,a),i.isFunction(e.onHeartbeat)&&e.onHeartbeat(t)):console.warn("PARSELY.beacon.pixel.beacon was called with action='heartbeat' while PARSELY.beacon was undefined."))},e.engagedTime.startTracking=function(){var t=!0===e.fbInstantArticles?undefined:e.engagedTime.sample;n.trackKey(e.ENGAGED_TIME_SAMPLER_KEY,t,e.engagedTime.sendHeartbeat)},e.engagedTime.stopTracking=function(){n.dropKey(e.ENGAGED_TIME_SAMPLER_KEY)},e.engagedTime.initNewPage=function(){e.engagedTime.stopTracking(),e.engagedTime.startTracking()},e.engagedTime.startTracking()}}(),function(){var e=this.PARSELY,t=e.$,n=e.Class,i=e.JSON,o=e.console,r=e.config,a=e.urls,s=e.visitorManager,u=e.sessionManager,c=e.ParselyStorage,l=e.util.getWindow(),d=l.document,f=l.screen;PARSELY.Pixel=n.extend({"init":function(){var t=e.util.getEventUrl(),n=f.width+"x"+f.height+"|"+(f.availWidth+"x"+f.availHeight)+"|"+f.colorDepth;this.correlationIds={"pageview":"pvid","videostart":"vsid"},this.callbackName="parselyStartCallback",this.data={"idsite":r.apikey,"url":t,"urlref":d.referrer,"screen":n,"data":{}},r.hasOwnProperty("is_remote_config")&&!0!==r.is_remote_config||(this.data.data.parsely_uuid=r.network_uuid||r.uuid,this.data.data.parsely_site_uuid=r.parsely_site_uuid),this.remoteEndpoint=a.pixel+this.selectEndpoint(),this.thirdPartyBlockedCookieSettings={"name":"_parsely_tpa_blocked","timeoutSecs":43200,"flagAttribute":"tpab"}},"selectEndpoint":function(){return!1===r.track_ip_addresses?"/px/":"/plogger/"},"isThirdPartyAnalyticsBlocked":function(){if(!e.is_first_party)return undefined;var t=this.thirdPartyBlockedCookieSettings,n=c.getJSON(t.name);if(void 0!==n&&(this.third_party_analytics_is_blocked=n[t.flagAttribute]),"undefined"==typeof this.third_party_analytics_is_blocked&&"undefined"==typeof this.third_party_analytics_checked){this.third_party_analytics_checked=!0;var i=this,o=function(e){i.third_party_analytics_is_blocked=e;var n={};n[t.flagAttribute]=e,c.setJSON(t.name,n,{"expires":t.timeoutSecs})},r=new Image;r.onerror=function(){o(!0)},r.onload=function(){o(!1)},r.src="https://p1.parsely.com/plogger/"}return this.third_party_analytics_is_blocked},"addDefaults":function(e){t.extend(!0,this.data,e)},"shouldGenerateVisitorID":function(e){return!(!r.hasOwnProperty("is_remote_config")||!0===r.is_remote_config)&&!e},"saveVisitorID":function(e){var t=u.getSession(),n={"id":e,"session_count":t.sid,"last_session_ts":t.sts};c.setJSON(s.visitorCookieName,n,{"expires":s.visitorCookieTimeoutSecs,"secure":s.visitorCookieSecure}),u.getSession()},"generateVisitorID":function(){r.uuid=e.util.makeUUID("pid="),this.saveVisitorID(r.uuid)},"conversionsOverrides":function(t){var n=["u","url","urlref","surl","slts","sts","sid","sref"],i=t.conversionOverrides;for(var o in i)if(i.hasOwnProperty(o)&&n.includes(o))try{t[o]=i[o]}catch(r){e.console.log("Error overriding ".concat(o," when beaconing crossdomain conversion. Error: ").concat(r," "))}return delete t.conversionOverrides,t},"sendEvent":function(n,i){o.log("beaconing to endpoint: "+this.remoteEndpoint),n.u=i;var r=new Image;"conversion"===n.action&&n.hasOwnProperty("conversionOverrides")&&(n=this.conversionsOverrides(n)),r.src=this.buildEventRequestUrl(n),t.isFunction(e.onBeacon)&&e.onBeacon(n)},"requestFetch":function(n,i){return o.log("fetching endpoint: "+this.remoteEndpoint),"undefined"!=typeof l.fetch&&(n.u=i,"conversion"===n.action&&n.hasOwnProperty("conversionOverrides")&&(n=this.conversionsOverrides(n)),fetch(this.buildEventRequestUrl(n),{"method":"GET","mode":"no-cors","keepalive":!0})["catch"](function(e){o.log(e)}),t.isFunction(e.onBeacon)&&e.onBeacon(n),!0)},"buildEventRequestUrl":function(e){var n=t.param(e);return this.remoteEndpoint+"?"+n},"generatePageloadId":function(){return"undefined"==typeof e.pageload_id&&(e.pageload_id=e.util.makeUUID()),e.pageload_id},"getCorrelationIdKey":function(e){return"_"+e+"_correlation_id"},"generateEventCorrelationId":function(t,n){var i=this.getCorrelationIdKey(t);return!0===n&&(e[i]=e.util.makeUUID()),e[i]},"beacon":function(n,o,c){var l=u.getSession(!0),d=e.util.now(),f=this.generatePageloadId()||0,p=t.extend(!0,{"rand":d,"plid":f},this.data,l,n),g=e.visitorManager.getVisitorInfo();!0===this.isThirdPartyAnalyticsBlocked()&&(p.tpab=1,p.data.flashlight=1),s.extendVisitorExpiry();var h;for(var v in this.correlationIds)void 0!==(h=this.generateEventCorrelationId(v,v===p.action))&&(p[this.correlationIds[v]]=h);p.data=i.stringify(p.data),!0!==o&&(PARSELY.lastRequest=p),r.uuid=g.id,this.shouldGenerateVisitorID(g.id)&&this.generateVisitorID(),!0===c&&(e.util.isFirefox()||e.util.isSafari())&&(c=!1),this.remoteEndpoint=a.pixel+this.selectEndpoint();var m=!1;!0===c&&(m=this.requestFetch(p,r.uuid)),!1===m&&this.sendEvent(p,r.uuid)}})}(),function(){var e=this.PARSELY,t=e.$,n=e.console,i=e.Class,o=e.JSON,r=e.ParselyStorage,a=e.util.getWindow().document;PARSELY.Beacon=i.extend({"init":function(){this.pixel=new PARSELY.Pixel},"trackPageView":function(i,s){void 0===i&&(i={}),"undefined"!=typeof i.action&&"pageview"!==i.action||e.initNewPage(!1);var u={"title":a.title,"date":(new Date).toString(),"action":"pageview","url":e.util.getEventUrl(),"urlref":a.referrer};e.enablePixelMetadata&&(u.hasOwnProperty("metadata")?u.metadata=o.stringify(t.extend(u.metadata,e.metadata.get())):u.metadata=o.stringify(e.metadata.get())),e.enableMetadataHashing&&(i.data=t.extend(i.data,{"parsely:metadata-detection":e.getMetadataDetectorInfo()}));var c=r.getJSON("_parsely_slot_click");c&&(r.expire("_parsely_slot_click"),n.log("Valid slot click found"),u.sl_xp=c.xpath,u.sl_x=c.x,u.sl_y=c.y,u.sl_h=c.href,c.url!==u.urlref&&n.log("urlref overridden by slot data as "+c.url),u.urlref=c.url),t.extend(u,i),this.pixel.beacon(u,s)},"trackConversion":function(e){window.console.warn("[WARN] `PARSELY.beacon.trackConversion()` is being deprecated."),window.console.warn("[WARN] Please consult https://www.parse.ly/help/integration/conversions/ to update to the new Conversions js-API.");var i=["active","lead","customer"],o={"label":undefined};e&&e.category?-1===i.indexOf(e.category)?n.log("'"+e.category+"' is not a valid conversion category; must be one of: "+i.join(", ")):(t.extend(o,e),this.trackPageView({"action":"conversion","data":{"_conversion_type":e.category,"_conversion_label":e.label}})):n.log("No category specified; category required for conversion events")},"start":function(){this.startTime=e.util.now(),this.autotrack="undefined"==typeof PARSELY.autotrack||PARSELY.autotrack,this.autotrack?(n.log("autotrack enabled; doing automatic pageview beacon"),this.trackPageView()):n.log("autotrack disabled; beacon loaded but no data sent")}})}(),function(){var e=PARSELY.config.settings,t=PARSELY.console,n=PARSELY.$;PARSELY.updateDefaults=function(e){return PARSELY.beacon.pixel.addDefaults(e)},PARSELY.setConfigOptions=function(e){e.hasOwnProperty("track_ip_addresses")&&(PARSELY.config.track_ip_addresses=e.track_ip_addresses)},PARSELY.initNewPage=function(e){"undefined"!=typeof PARSELY&&("undefined"!=typeof PARSELY.Sampler&&"function"==typeof PARSELY.Sampler._sendHeartbeats&&PARSELY.Sampler._sendHeartbeats(),"undefined"!=typeof PARSELY.engagedTime&&"function"==typeof PARSELY.engagedTime.initNewPage&&PARSELY.engagedTime.initNewPage(),"undefined"!=typeof PARSELY.video&&"function"==typeof PARSELY.video.clear&&PARSELY.video.clear(),"undefined"!=typeof PARSELY.slots&&"function"==typeof PARSELY.slots.reset&&PARSELY.slots.reset(),"undefined"!=typeof PARSELY.lastRequest&&delete PARSELY.lastRequest,!1!==e&&"undefined"!=typeof PARSELY.beacon&&"function"==typeof PARSELY.beacon.start&&PARSELY.beacon.start(),PARSELY.autotrack&&PARSELY.video&&!1!==PARSELY.video.autotrack&&"function"==typeof PARSELY.video.detectVideos&&PARSELY.video.detectVideos())},PARSELY.onStart=function(e){"function"==typeof e&&e()},PARSELY.isFlashlight=function(){return PARSELY.beacon.pixel.isThirdPartyAnalyticsBlocked()};var i;if(e.tracker&&(t.log("tracker enabled, create Beacon"),i=new PARSELY.Beacon,PARSELY.beacon=i),"undefined"!=typeof PARSELY._stubs){var o,r;for(o in PARSELY._stubs)if(PARSELY._stubs.hasOwnProperty(o)&&"function"==typeof PARSELY[o])for(r=0;r1&&arguments[1]!==undefined?arguments[1]:undefined,n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(void 0===e&&void 0===t)return!0;if(e)for(var i=0;i0)||l(e.search,n.search)))};e.conversions.ConversionFromConfigs=t.extend({"init":function(t){var n,i=this;this.results=[],this.config=t,"function"==typeof(n=e.conversions[a(i.config.type)])?(this.conversionAction=function(t){c(i.config.conditions,i.config.pianoConditions,t)?e.config.customizations&&!0===e.config.customizations.debug?console.log('Debug: Conversion event would have been sent with type "'.concat(i.config.type,'" and label "').concat(i.config.label||i.config.type,'".')):n(i.config.label):e.console.log("Conversion callback triggered but conditions not satisfied: ".concat(i.config.conditions))},this.callback=function(e){i.conversionAction(e)},this.retryInterval=i.config.retryInterval||100,this.currentUrlIsAllowed=function(){if(Object.prototype.hasOwnProperty.call(i.config,"allowedUrls")){for(var t=e.util.getWindow().location,n=0;n